package com.xuetang.security;

import com.xuetang.entity.SysUser;

import java.io.Serializable;
import java.util.List;

/**
 * 登录用户实体
 */
public class LoginUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户实体
     */
    private SysUser user;

    /**
     * 权限列表
     */
    private List<String> permissions;

    public LoginUser(SysUser user, List<String> permissions) {
        this.user = user;
        this.permissions = permissions;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public List<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }
}